<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="../../org/angular.min.js"></script>
</head>

<body ng-app="app" ng-controller="ctrl">
    <label for=""><input type="checkbox" name="" ng-model="status">接受</label>
    <button ng-init="copyright=false" ng-click="copyright = !copyright">查看协议</button> <br>
    <textarea ng-if="copyright" name="" id="" cols="30" rows="10">协议内容</textarea> <br>
    <input type="submit" ng-disabled="!status" value="注册">

    <script>
        var m = angular.module('app', []);
        m.controller('ctrl', ['$scope', function($scope) {

        }])
    </script>
</body>

</html>
